package com.jy.adscm.stock.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jy.adscm.dealer.bean.Dealer;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-01-23
 */
public class JyOutStorage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 医院
     */
    private String hospital;
    @TableField(exist = false)
    private String hospitalName;
    /**
     * 科室
     */
    private String department;
    @TableField(exist = false)
    private String departmentName;
    /**
     * 产品
     */
    private String product;
    @TableField(exist = false)
    private String productName;
    /**
     * 数量
     */
    private Integer num;
    /**
     * 下单时间
     */
    private Date orderTime;
    /**
     * 出库时间
     */
    private Date outStorageTime;
    /**
     * 出库人
     */
    private String outStoragePerson;
    @TableField(exist = false)
    private String outStoragePersonName;
    /**
     * 经销商
     */
    private String dealer;
    @TableField(exist = false)
    private String dealerName;

    public String getDealerName() {
        return dealerName;
    }

    public void setDealerName(String dealerName) {
        this.dealerName = dealerName;
    }

    public String getDealer() {
        return dealer;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getOutStoragePersonName() {
        return outStoragePersonName;
    }

    public void setOutStoragePersonName(String outStoragePersonName) {
        this.outStoragePersonName = outStoragePersonName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHospital() {
        return hospital;
    }

    public void setHospital(String hospital) {
        this.hospital = hospital;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getOrderTime() {
        return orderTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getOutStorageTime() {
        return outStorageTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setOutStorageTime(Date outStorageTime) {
        this.outStorageTime = outStorageTime;
    }

    public String getOutStoragePerson() {
        return outStoragePerson;
    }

    public void setOutStoragePerson(String outStoragePerson) {
        this.outStoragePerson = outStoragePerson;
    }

    @Override
    public String toString() {
        return "JyOutStorage{" +
                "id=" + id +
                ", hospital='" + hospital + '\'' +
                ", hospitalName='" + hospitalName + '\'' +
                ", department='" + department + '\'' +
                ", departmentName='" + departmentName + '\'' +
                ", product='" + product + '\'' +
                ", productName='" + productName + '\'' +
                ", num=" + num +
                ", orderTime=" + orderTime +
                ", outStorageTime=" + outStorageTime +
                ", outStoragePerson='" + outStoragePerson + '\'' +
                ", outStoragePersonName='" + outStoragePersonName + '\'' +
                '}';
    }
}
